package com.pxd.Controller;

import com.pxd.serviceDemo1.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {

    @Autowired
    UserService service;

    @RequestMapping("loginto")
    public boolean t(String username,String password){
        if (service.check(username,password)){
            System.out.println("登录成功");
            return true;
        }
        return false;
    }
}
